package cn.kxm.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


import cn.kxm.pojo.Part;
import cn.kxm.pojo.PartType;

public interface PartService {
    public List<Map<String, Object>> getPartListByCodes(String [] codes); 
    public List<Map<String, Object>> getPartList(String customName,Integer page,
    		Integer size,String size2,String partNo,String name,Integer type); 
    public int getPartListCount(String size2,String partNo,String name,Integer type);

	/**
	 * 根据条件查询配件信息
	 * @param part
	 * @param currentPageNo
	 * @param pageSize
	 * @return
	 */
	List<Map<String, Object>> getPartListt(Part part,Integer currentPageNo,Integer pageSize);
	/**
	 * 根据查询条件查出总数量
	 * @param currentPageNo
	 * @param pageSize
	 * @return
	 */
	int getPartCount(Part part);
	/**
	 * 根据编号查询具体的配件信息
	 * @param code
	 * @return
	 */
	List<Map<String, Object>>getByCode(String code);
	/**
	 * 根据编号查询part与询价信息
	 * @param code
	 * @return
	 */
	List<Map<String, Object>>getPart_ib(String code);
	
	//use by offerpricebill
	 public List<Part> getPartList(String partBrand,String partNo,String partName,Integer partTypeId,Integer pageNo,Integer pageSize);
	 public int getPartCount(String partBrand,String partNo,String partName,Integer partTypeId);
	 public List<PartType> getPartTypeList();

}
